/*
" File: show-hide.js
" Author: ruoshui
" Description: This javascript modify the class of element to show and hide them.
" Last Modified: September 16, 2012	
*/



function all_hide() {
	var hide_nav=document.getElementsByClassName("nav_show")
		var hide_cfg=document.getElementsByClassName("cfg_show")

		for (var i = 0; i < hide_nav.length; i++) {
			hide_nav[i].className="nav_hide"
		}
	for (var j = 0; j < hide_cfg.length; j++) {
		hide_cfg[j].className="cfg_hide"
	}
}



function show_gnrl(){
	all_hide()
		if (document.getElementById("nav_gnrl").className="nav_hide")
		{
			document.getElementById("nav_gnrl").className="nav_show"
				document.getElementById("cfg_gnrl").className="cfg_show"
		}
}

function show_ui(){
	all_hide()
		if (document.getElementById("nav_ui").className="nav_hide")
		{
			document.getElementById("nav_ui").className="nav_show"
				document.getElementById("cfg_ui").className="cfg_show"
		}
}

function show_ntfy(){
	all_hide()
		if (document.getElementById("nav_ntfy").className="nav_hide")
		{
			document.getElementById("nav_ntfy").className="nav_show"
				document.getElementById("cfg_ntfy").className="cfg_show"
		}
}


function show_blk(){
	all_hide()
		if (document.getElementById("nav_blk").className="nav_hide")
		{
			document.getElementById("nav_blk").className="nav_show"
				document.getElementById("cfg_blk").className="cfg_show"
		}
}

function login_tips() {
	if (document.getElementById("keep_login").checked)
	{
		document.getElementById("login_note").style.display="block"
	}
	else
	{
		document.getElementById("login_note").style.display="none"
	}

}

/*
   " File ends here.
   "
   */

